<?php

abstract class Common_Cron_Executor {
    
    const _CEXEC_PREFIX = 'Common_Cron_Executor_';
    
    /**
     *
     * @var Common_Controller_Cron
     */
    protected $controller;
    public $className = null;

    public function __construct($controller) {
        $this->controller = $controller;
    }

    public abstract function exec(Zend_Db_Table_Row &$task);

    public function setController($controller) {
        $this->controller = $controller;
    }

    public function getController() {
        return $this->controller;
    }

    public function addTask($data) {
        
    }

    public abstract function completeTask(Zend_Db_Table_Row &$task);

    
    
}